#!/bin/bash

while ! timeout 1 bash -c "echo > /dev/tcp/mysql/3306"; do
    echo "Waiting for the MySQL Server"
    sleep 3
done



python manage.py collectstatic --noinput&&
python manage.py makemigrations&&
python manage.py migrate&&

uwsgi --ini /room/uwsgi.ini&&
tail -f /dev/null


exec "$@"
